package com.yisu.auction.api.domain.vo.PrizePackageVos;

import java.math.BigDecimal;

/**
 * Created by LXH on 2017/8/21.
 */
public class HistoricalPrizes {
    private BigDecimal transactionPrice;
    private Integer term;
    private BigDecimal averagePrice;

    public BigDecimal getTransactionPrice() {
        if(transactionPrice==null)
            return BigDecimal.valueOf(0);
        return transactionPrice;
    }

    public void setTransactionPrice(BigDecimal transactionPrice) {
        this.transactionPrice = transactionPrice;
    }

    public Integer getTerm() {
        return term;
    }

    public void setTerm(Integer term) {
        this.term = term;
    }

    public BigDecimal getAveragePrice() {
        return averagePrice;
    }

    public void setAveragePrice(BigDecimal averagePrice) {
        this.averagePrice = averagePrice;
    }

    @Override
    public String toString() {
        return "HistoricalPrizes{" +
                "transactionPrice=" + transactionPrice +
                ", term=" + term +
                ", averagePrice=" + averagePrice +
                '}';
    }
}
